import { commonBaseUrl } from '@/utils'
import request from '@/utils/request'
const moduleName = commonBaseUrl('C') || 'acceptance/'
// 物资信息推送资源
export function pushResourceAndFinance(params) {
    console.log(moduleName)
    return request({
        // url: moduleName + 'api/accept/pushResourceAndFinance',
        url: moduleName + 'api/accept/pushAllMaterialResource',
        method: 'post',
        showLoading: true,
        params
    })
}

// 鉴权
export function checkResourceEnter(params) {
    return request({
        url: moduleName + 'api/accept/queryWorkItemDetail',
        method: 'get',
        showLoading: true,
        params,
        hideMessage: true,
    })
}
// 校验token
export function checkToken() {
    return request({
        url: moduleName + 'api/platform/validateToken',
        method: 'get',
        showLoading: true,
        hideMessage: true,
    })
}